<template>
  <div>

    <van-checkbox-group v-model="checked">
      <van-checkbox name="a">复选框 a</van-checkbox>
      <van-checkbox name="b">复选框 b</van-checkbox>
    </van-checkbox-group>

  </div>
</template>

<script>
import { reactive, toRefs } from 'vue';
export default {
  setup() {
    let data = reactive({
      checked: ['a'],
    })
    console.log(data.checked);
    return { ...toRefs(data), }
  },
}
</script>

<style lang="scss" scoped></style>